package com.bianguo.android.iocdemo.view.activity;

import android.os.Bundle;

import com.bianguo.android.injectlibrary.annotations.ContentView;
import com.bianguo.android.injectlibrary.annotations.InjectView;
import com.bianguo.android.iocdemo.R;
import com.bianguo.android.iocdemo.view.widget.parallax.ParallaxPager;

@ContentView(R.layout.activity_parallax)
public class ParallaxActivity extends BaseActivity {

    @InjectView(R.id.viewpager)
    ParallaxPager mPager;

    private final int[] layoutId = {
            R.layout.fragment_parallax,
            R.layout.fragment_parallax,
            R.layout.fragment_parallax
    };

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mPager.setUp(layoutId);
    }
}
